<template>
  <div class="wrap" id="app">
    <router-view/>
    <div>
      <ul class="ulNav">
        <li>
          <router-link to="/" replace>首页</router-link>
        </li>
        <li>
          <router-link to="/product" replace>产品</router-link>
        </li>
        <li>
          <router-link to="/discover" replace>发现</router-link>
        </li>
        <li>
          <router-link to="/user" replace>我的</router-link>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style lang="less" rel="stylesheet/less">
  .wrap {
    width: 100%;overflow-x: hidden;
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
  }
  img{max-width: 100%;}

  .page { padding: 0 0 50px 0; box-sizing: padding-box;}

  .ulNav {
    position: fixed; bottom: 0;width: 100%;left: 0;
    margin: 0;padding: 0; list-style: none; display: flex;flex-direction: row; justify-content: space-between; height: 40px;align-items: center; background: #f9f9f9;
    li {
      display: inline-flex; padding: 0 10px; text-align: center;
      a {display: block;text-decoration: none; color: #490;}
    }
  }

  .fade-enter-active, .fade-leave-active {
    transition: opacity .5s;
  }

  .fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
    opacity: 0;
  }
</style>
